package cn.yl.course.server.entity.dto;

import cn.yl.course.server.entity.ActivityCourse;
import cn.yl.course.server.entity.CourseLesson;
import cn.yl.course.server.entity.CourseSection;
import cn.yl.course.server.entity.Teacher;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;

@Data
@Accessors(chain = true)
public class CourseDto {

    private Integer id;

    private String courseImgUrl;

    @ApiModelProperty("课程名")
    @TableField("course_name")
    private String courseName;

    @ApiModelProperty("课程一句话简介")
    @TableField("brief")
    private String brief;

    @ApiModelProperty("优惠价")
    @TableField("discounts")
    private Double discounts;

    @ApiModelProperty("原价")
    @TableField("price")
    private Double price;

    @ApiModelProperty("描述markdown")
    @TableField("course_description_mark_down")
    private String courseDescriptionMarkDown;

    @ApiModelProperty("课程描述")
    @TableField("course_description")
    private String courseDescription;


    @ApiModelProperty("销量")
    @TableField("sales")
    private Integer sales;

    private ArrayList<CourseSectionDto> courseSections;

    private TeacherDto teacher;
    // 一门课做一个活动
    private ActivityCourseDto activityCourse;
}
